package com.sch.hospital.domain;

import java.time.LocalDate;

/**
 * 医疗记录对象 medicalrecord
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Medicalrecord
{
    /** 记录ID，自增主键 */
    private Long id;

    /** 患者ID */
    private Long patientId;

    /** 医生ID */
    private Long docId;

    /** 科室ID */
    private Long departId;

    /** 病历号 */
    private String recordNo;

    /** 主诉 */
    private String complaint;

    /** 诊断结果 */
    private String diagnosis;

    /** 处方 */
    private String prescription;

    /** 医嘱 */
    private String advice;

    /** 关联的预约ID */
    private Long appointmentId;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Medicalrecord() {
    }

    public Medicalrecord(Long id, Long patientId, Long docId, Long departId, String recordNo, String complaint, String diagnosis, String prescription, String advice, Long appointmentId, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.patientId = patientId;
        this.docId = docId;
        this.departId = departId;
        this.recordNo = recordNo;
        this.complaint = complaint;
        this.diagnosis = diagnosis;
        this.prescription = prescription;
        this.advice = advice;
        this.appointmentId = appointmentId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return patientId
     */
    public Long getPatientId() {
        return patientId;
    }

    /**
     * 设置
     * @param patientId
     */
    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    /**
     * 获取
     * @return docId
     */
    public Long getDocId() {
        return docId;
    }

    /**
     * 设置
     * @param docId
     */
    public void setDocId(Long docId) {
        this.docId = docId;
    }

    /**
     * 获取
     * @return departId
     */
    public Long getDepartId() {
        return departId;
    }

    /**
     * 设置
     * @param departId
     */
    public void setDepartId(Long departId) {
        this.departId = departId;
    }

    /**
     * 获取
     * @return recordNo
     */
    public String getRecordNo() {
        return recordNo;
    }

    /**
     * 设置
     * @param recordNo
     */
    public void setRecordNo(String recordNo) {
        this.recordNo = recordNo;
    }

    /**
     * 获取
     * @return complaint
     */
    public String getComplaint() {
        return complaint;
    }

    /**
     * 设置
     * @param complaint
     */
    public void setComplaint(String complaint) {
        this.complaint = complaint;
    }

    /**
     * 获取
     * @return diagnosis
     */
    public String getDiagnosis() {
        return diagnosis;
    }

    /**
     * 设置
     * @param diagnosis
     */
    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    /**
     * 获取
     * @return prescription
     */
    public String getPrescription() {
        return prescription;
    }

    /**
     * 设置
     * @param prescription
     */
    public void setPrescription(String prescription) {
        this.prescription = prescription;
    }

    /**
     * 获取
     * @return advice
     */
    public String getAdvice() {
        return advice;
    }

    /**
     * 设置
     * @param advice
     */
    public void setAdvice(String advice) {
        this.advice = advice;
    }

    /**
     * 获取
     * @return appointmentId
     */
    public Long getAppointmentId() {
        return appointmentId;
    }

    /**
     * 设置
     * @param appointmentId
     */
    public void setAppointmentId(Long appointmentId) {
        this.appointmentId = appointmentId;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Medicalrecord{id = " + id + ", patientId = " + patientId + ", docId = " + docId + ", departId = " + departId + ", recordNo = " + recordNo + ", complaint = " + complaint + ", diagnosis = " + diagnosis + ", prescription = " + prescription + ", advice = " + advice + ", appointmentId = " + appointmentId + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
